package service.ClientService._stub;

import VO.HotelVO;
import service.ClientService.SearchHotelService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import java.util.Iterator;

public class SearchHotelService_stub extends UnicastRemoteObject implements SearchHotelService {
	private static final long serialVersionUID = 342100573704817478L;

	public SearchHotelService_stub() throws RemoteException {
		super();
	}

	public Iterator<HotelVO> getHotelList(String address, String area, String price, int star, String grade)throws RemoteException {
		ArrayList <HotelVO>list=new ArrayList<HotelVO>();
		HotelVO hotel=new HotelVO("如家酒店", "南京最实惠的酒店", "南京市新街口", "新街口", "早餐供应", '3', "rujiaadmin", 5.0, 100, new String []{"南京大学"});
		list.add(hotel);
		Iterator <HotelVO>iter=list.iterator(); 
		return iter;
	    }

    public HotelVO getHotelInfo(String hotelName) throws RemoteException {
	        return new HotelVO("如家酒店","南京最好的酒店","南京新街口","新街口","早餐供应",'3',"rujiaadmin",5.0,100,null);

	 }
}
